home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / 273_01.zip / GETCA.CC < prev    next >
Text File  |  1993-04-04  |  302b  |  13 lines

  1. #include <dos.h>
  2. get_ca(char *ch, char *scan) 
  3. /* Read a keystroke.  ch=character code or zero if extended code
  4.                     scan=extended code or scan code
  5. */
  6. {
  7.         union REGS inregs;
  8.         inregs.h.ah=0;
  9.         int86(0x16,&inregs,&inregs);
  10.         *ch=inregs.h.al;
  11.         *scan=inregs.h.ah;
  12. }
  13.